package com.emns.service.mobile;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emns.dao.ShiJieMapper;
import com.emns.dao.YueduMapper;
import com.emns.dao.ZhihuiMapper;
import com.emns.pojo.ShijieMobileQuery;
import com.emns.pojo.YueduMobileQuery;
import com.emns.pojo.ZhihuiMobileQuery;

@Service
public class HomeMobileService {

	@Autowired
	YueduMapper ydm;
	@Autowired
	ShiJieMapper sjm;
	@Autowired
	ZhihuiMapper zhm;

	public Map<String, Object> queryAll() {
		YueduMobileQuery yuedu = ydm.selectYueduOnHome();
		ShijieMobileQuery shijie = sjm.selectShijieOnHome();
		ZhihuiMobileQuery zhihui = zhm.selectZhihuiOnHome();
		Map<String, Object> hm = new HashMap<String, Object>();
		hm.put("yuedu", yuedu);
		hm.put("shijie", shijie);
		hm.put("zhihui", zhihui);

		return hm;
	}
}
